<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "iliketry.sms_new_log".
 *
 * @property integer $id
 * @property string $comment
 * @property string $source_data
 * @property string $result_data
 * @property string $cell
 * @property string $add_time
 */
class SmsLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'iliketry.sms_new_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['source_data', 'result_data', 'cell'], 'string'],
            [['add_time'], 'safe'],
            [['comment'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'comment' => 'Comment',
            'source_data' => 'Source Data',
            'result_data' => 'Result Data',
            'cell' => 'Cell',
            'add_time' => 'Add Time',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\SmsLogQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\SmsLogQuery(get_called_class());
    }
}
